/*
 * Created: Author: Ivan Lampert / Date: Jan 25, 2015
 * 
 * Changed: $Author: ac280593@gmail.com $ / $Date: 2015-03-16 22:06:33 -0300 (Mon, 16 Mar 2015) $
 */
package com.cpm.wrapper;

import com.cpm.aggregate.Attribute;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

public final class AttributeList<TYPE> implements Serializable {
    private static final long serialVersionUID = -292997205588934651L;
    
    private final Set<Attribute<TYPE>> attributes = new HashSet();

    public AttributeList() {}

    public final void putAttribute(Attribute attribute) {
        SolidObjects.notNull(attribute);
        attributes.add(attribute);
    }
    
    public final int getSize() { return attributes.size(); }
    
    public final boolean isEmpty() { return attributes.isEmpty(); }
    
    public final Iterator getIterator() { return attributes.iterator(); }
    
}
